<template>
  <h2>我是About组件</h2>
</template>

<script>
export default {
    name:"About",
    mounted() {
      // 当再次回到该路由，则会再次挂载！
      console.log("About路由挂载完毕");
      window.aboutRoute = this.$route;
      window.aboutRouter = this.$router;
    },
    beforeDestroy() {
      // 路由在被切换掉后实际上默认被销毁了！
      console.log("About路由被销毁")
    },
}
</script>

<style>

</style>